package com.wander.juc.lock;

import java.util.concurrent.atomic.AtomicInteger;

public class AtomicObjectExample {
    public static void main(String[] args) {
        AtomicInteger integer = new AtomicInteger(0);
        for (int i = 0; i < 10; i++) {
            System.out.println(integer.getAndIncrement());
        }
    }
}
